package com.luying.dao;

import com.luying.pojo.ClassAndSubjectVo;
import com.luying.pojo.PageQuery;
import com.luying.pojo.Subject;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface SubjectDao extends Mapper<Subject> {

    List<Subject> selectPage(@Param("query") PageQuery pageQuery);

    int deleteById(@Param("id") Integer id);

    int updateById(@Param("subject") Subject subject);

    List<ClassAndSubjectVo> selectClassAndSubject(@Param("query") PageQuery query);
}
